$OpenBSD: patch-items_c,v 1.10 2015/05/05 15:43:03 giovanni Exp $

printf format string fix for long long time_t

--- items.c.orig	Sat Apr 25 22:47:33 2015
+++ items.c	Mon May  4 12:52:52 2015
@@ -459,9 +459,9 @@ char *item_cachedump(const unsigned int slabs_clsid, c
         /* Copy the key since it may not be null-terminated in the struct */
         strncpy(key_temp, ITEM_key(it), it->nkey);
         key_temp[it->nkey] = 0x00; /* terminate */
-        len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n",
+        len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %llu s]\r\n",
                        key_temp, it->nbytes - 2,
-                       (unsigned long)it->exptime + process_started);
+                       (unsigned long long)it->exptime + process_started);
         if (bufcurr + len + 6 > memlimit)  /* 6 is END\r\n\0 */
             break;
         memcpy(buffer + bufcurr, temp, len);
